package com.telecom.pojo.dto.admin.order;

import lombok.Data;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Positive;
import java.math.BigDecimal;

/**
 * 取消订单请求DTO
 */
@Data
public class OrderCancelRequestDTO {
    
    /**
     * 订单id
     */
    @NotNull(message = "订单id不能为空")
    private Long id;
    
    /**
     * 订单取消原因
     */
    @NotBlank(message = "取消原因不能为空")
    private String cancelReason;
    
    /**
     * 退款金额
     */
    @NotNull(message = "退款金额不能为空")
    @Positive(message = "退款金额必须为正数")
    private BigDecimal refundAmount;
}